package atovio.springboot.pk2;

/**
 * sealed密闭类，父类
 * sealed声明了密闭类，permits声明可继承的子类
 * @author AtoVio, Winter Yuan
 */
public sealed class Shape permits Circle, Square, Rectangle{
    private Integer width;
    private Integer length;

    public void draw() {
        System.out.println("画一个图形Shape");
    }
}
